package com.beta.dto.user;

import com.beta.em.UserStatus;
import com.beta.em.UserType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lichao on 2017/1/13.
 */
@Getter
@Setter
public class UsersDto implements Serializable {

    private static final long serialVersionUID = -197312427988154482L;

    private Integer id;

    private String name;

    private String username;

    private String phone;

    private String userType;

    private String status;

    private String cityName;

    private Date createdAt;

    public String getStatus() {
        return UserStatus.getCnValue(this.status);
    }

    public String getUserType() {
        return UserType.getCnValue(this.userType);
    }
}
